import { v4 as uuidv4 } from 'uuid';
export const getUUID = () => {
    let uuid_token = localStorage.getItem("UUIDTOKEN")
    //判断本地存储是否有uuid，如果没有则执行以下代码
    if (!uuid_token) {
        uuid_token = uuidv4()
        localStorage.setItem("UUIDTOKEN", uuid_token)
    }

    //一定要返回参数
    return uuid_token
}